var express = require('express');
var router = express.Router();
let { getDateService,addDataService ,delDataService,updateDataService,getDataUnOpenService} = require('../service/publicService');
// 获得教师列表
router.get('/getTeachers', getDateService)

router.get('/getUnOpenTeacher', getDataUnOpenService)
// 教师新增
router.post('/addTeacher', addDataService)

// 教师删除
router.post('/delTeacher', delDataService)

// 教师修改
router.post('/updateTeacher', updateDataService);

module.exports = router;